package barbershop.com.service.orders;

import barbershop.com.entity.orders.OrderItem;
import barbershop.com.entity.orders.Orders;

import java.util.List;

public interface OrderService {
    Orders insert(Orders record);
    Boolean delete(Orders record);
    Orders update(Orders record);
    Orders find(Orders record);
    List<Orders> findAll();

    List<OrderItem> findAllOrderItems(Integer orderId);
    Integer getTotalQuantity(Integer orderId);
    Double getTotalPrice(Integer orderId);
    void updateTotalQP(Integer orderId);
    void updateOrderStatus(Integer status, Integer orderId);
    List<Orders> getSuccessOrder(Integer orderStatus);

    List<Orders> findByDate(String date);
}
